<?php
/**
 * Author Yulin
 * Email  dwzhanglong@126.com
 * Date   2017-7-27
 * Func   彩票数据抓取入口
 */
header('Content-Type:text/html; charset=UTF-8');
date_default_timezone_set('PRC');
error_reporting(E_ERROR | E_WARNING | E_PARSE);

define('IN_YuLin', true);
define('TIMESTAMP', time());
define('ROOT_PATH', str_replace('\\', '/', dirname(__FILE__) . '/')); //根目录
define('DATA_PATH', ROOT_PATH . 'data/'); //数据目录
define('LIB_PATH', ROOT_PATH . 'lib/');  //类库文件

include_once LIB_PATH . 'common.inc.php';
require_once LIB_PATH . 'protect.php';
include_once LIB_PATH . 'common.func.php';

//	数据库
include(LIB_PATH.'class/Db.class.php');
$db = new DB($_config['db']);

//	彩票类型
$m = NoBadStr($_GET['m']);
$file = ROOT_PATH.'module/api/create'.$m.'.inc.php';

if(file_exists($file))
{
	include_once($file);
}

?>